
#ifndef _CLIB_STRING
#define _CLIB_STRING

/* Split a string by the delimiting character, and place appropriate pointers
 * in the passed in array of char *s. Must know max number of splits ahead of time
 * for the char * array. 
 *
 * Returns the number of tokens in the string.
 */
extern int split( char * line, char ** buckets, char * delim );

/* Split a string by the delimiting character, and return a dynamically
 * allocated array of char *'s. The original string is not modified.
 *
 * Returns: Array of char *'s, each pointing to a substring
 */
extern char ** split_dynamic( char * line, char * delim ) ;


/* Strip any character in padding away from the ends of line.
 *
 * Returns a pointer to the new string. Line is modified.
 */
extern char * strip( char * line, char * padding );

#endif

